<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>确认支付</title>
	<%@ include file="../common/common.jsp"%>
	<link rel="stylesheet" type="text/css" href="${ctx}/page/lib/other/css/main.css" />
</head>
<body>
<div class="bg-silver" style="height:10px;"></div>
<div class="bg-white">
	<div class="line padding border-bottom">
		<div class="xs3 text-center">申请编号:</div>
		<div class="xs9">${softOrder.orderNo }</div>
	</div>
	<div class="line padding border-bottom">
		<div class="xs3 text-center ">申请版本:</div>
		<div class="xs9">
		<c:if test="${softOrder.vipLevel eq 1}">会员版</c:if>
		<c:if test="${softOrder.vipLevel eq 2}">代理版</c:if>
		</div>
	</div>
	<div class="line padding border-bottom">
		<div class="xs3 text-center">支付金额:</div>
		<div class="xs9"><fmt:formatNumber type="number" value="${softOrder.payAmount}" pattern="0.00" maxFractionDigits="2"/>&nbsp;元</div>
	</div>
	<div class="line padding">
		<div class="xs3 text-center">赠送积分:</div>
		<div class="xs9"><fmt:formatNumber type="number" value="${softOrder.givePoint}" pattern="0.00" maxFractionDigits="2"/></div>
	</div>
</div>
<div class="bg-silver" style="height:10px;"></div>
<div class="margin">
	<button id="gotoPay" class="button bg-green button-big button-block">微信支付</button>
</div>
<input id="orderNo" type="hidden" value="${softOrder.orderNo}">
<script type="text/javascript">
	$(document).ready(function(){
		var orderNo = $("#orderNo").val();
		$('#gotoPay').on('click', function() {
			gopay(orderNo);
		});
		
	});
	function gopay(orderNo){
		window.location.href=mServerUrl+"/page/wxPayPage.htm?orderNo="+orderNo+"&time="+((new Date()).getTime());
		
	}
</script>
</body>
</html>